package Testwork;

class Employee extends Person {
	public Double salary;

	public Employee(String name, String adress, String phonenumber, String email, int age, String gender,
			Double salary) {
		super(name, adress, phonenumber, email, age, gender);
		this.salary = salary;
	}

	public Double getSalary() {
		return salary;
	}

	public void setSalary(Double salary) {
		this.salary = salary;
	}

	@Override
	public String toString() {
		return "Employee [salary=" + salary + ", toString()=" + super.toString() + "]";
	}


}

